<template>
  <div class="paper-container">
    <!-- 顶部横幅区域 -->
    <div class="banner-section">
      <div class="banner-content">
        <h1 class="banner-title">学术研究成果展示</h1>
        <p class="banner-subtitle">邓恺鑫 - 数据科学与大数据技术</p>
      </div>
      <div class="banner-decoration">
        <div class="decoration-circle circle-1"></div>
        <div class="decoration-circle circle-2"></div>
        <div class="decoration-circle circle-3"></div>
      </div>
    </div>

    <div class="content-wrapper">
      <!-- 左侧内容区域 -->
      <div class="left-column">
        <!-- 个人信息卡片 -->
        <el-card class="profile-card">
          <div slot="header" class="card-header">
            <i class="el-icon-user-solid header-icon"></i>
            <span>个人信息</span>
          </div>
          <div class="profile-content">
            <!-- 头像区域 -->
            <div class="avatar-section">
              <div class="avatar-container">
                <img :src="avatarUrl" alt="头像" class="avatar-img" v-if="avatarUrl">
                <div class="avatar-placeholder" v-else>
                  <i class="el-icon-user"></i>
                </div>
                <div class="avatar-upload-overlay">
                  <el-upload
                    class="avatar-uploader"
                    action="#"
                    :auto-upload="false"
                    :on-change="handleAvatarChange"
                    :show-file-list="false"
                    accept="image/*"
                  >
                    <el-button size="small" type="primary" icon="el-icon-upload">更换头像</el-button>
                  </el-upload>
                </div>
              </div>
              <h3 class="student-name">邓恺鑫</h3>
              <p class="student-major">数据科学与大数据技术</p>
            </div>
            
            <!-- 基本信息 -->
            <div class="profile-details">
              <div class="detail-item">
                <i class="el-icon-school item-icon"></i>
                <div class="item-content">
                  <span class="item-label">学院</span>
                  <span class="item-value">工程技术学院</span>
                </div>
              </div>
              <div class="detail-item">
                <i class="el-icon-reading item-icon"></i>
                <div class="item-content">
                  <span class="item-label">年级</span>
                  <span class="item-value">2022级</span>
                </div>
              </div>
              <div class="detail-item">
                <i class="el-icon-document item-icon"></i>
                <div class="item-content">
                  <span class="item-label">学号</span>
                  <span class="item-value">116420220109</span>
                </div>
              </div>
              <div class="detail-item">
                <i class="el-icon-user item-icon"></i>
                <div class="item-content">
                  <span class="item-label">指导教师</span>
                  <span class="item-value">陈教授</span>
                </div>
              </div>
              <div class="detail-item">
                <i class="el-icon-message item-icon"></i>
                <div class="item-content">
                  <span class="item-label">联系方式</span>
                  <span class="item-value">dengkaixin@example.com</span>
                </div>
              </div>
            </div>
          </div>
        </el-card>

        <!-- 论文基本信息 -->
        <el-card class="thesis-card">
          <div slot="header" class="card-header">
            <i class="el-icon-notebook-2 header-icon"></i>
            <span>毕业论文信息</span>
          </div>
          <div class="thesis-content">
            <div class="thesis-item">
              <h3 class="thesis-title">基于食品安全诉求智能处理系统</h3>
              <div class="thesis-tags">
                <el-tag type="success">食品安全</el-tag>
                <el-tag type="warning">深度学习</el-tag>
                <el-tag type="danger">模式识别</el-tag>
              </div>
            </div>
            <div class="thesis-abstract">
              <h4>论文摘要</h4>
              <p>针对公众食品安全诉求处理效率低、风险洞察滞后等问题，本系统利用自然语言处理与大数据分析技术，实现诉求的智能分流、情感分析及风险靶向定位，为监管部门提供精准的决策支持，有效防范和化解食品安全风险。</p>
            </div>
            <div class="thesis-meta">
              <div class="meta-item">
                <span class="meta-label">完成时间</span>
                <span class="meta-value">2025年5月</span>
              </div>
              <div class="meta-item">
                <span class="meta-label">论文评定</span>
                <el-tag type="success" size="medium">优秀</el-tag>
              </div>
            </div>
          </div>
        </el-card>
      </div>

      <!-- 右侧内容区域 -->
      <div class="right-column">
        <!-- 研究成果 -->
        <el-card class="achievements-card">
          <div slot="header" class="card-header">
            <i class="el-icon-trophy header-icon"></i>
            <span>研究成果</span>
          </div>
          <div class="achievements-content">
            <el-tabs v-model="activeTab" type="card">
              <el-tab-pane label="学术论文" name="papers">
                <div class="achievement-list">
                  <div class="achievement-item">
                    <div class="achievement-badge">
                      <i class="el-icon-document badge-icon"></i>
                    </div>
                    <div class="achievement-content">
                      <h4>基于改进CNN的图像识别算法研究</h4>
                      <p class="achievement-meta">《计算机科学》期刊 · 第一作者 · 2024年12月</p>
                      <p class="achievement-desc">提出了一种改进的卷积神经网络结构，在图像识别任务中取得了显著性能提升。</p>
                    </div>
                  </div>
                  <div class="achievement-item">
                    <div class="achievement-badge">
                      <i class="el-icon-document badge-icon"></i>
                    </div>
                    <div class="achievement-content">
                      <h4>深度学习在计算机视觉中的应用研究综述</h4>
                      <p class="achievement-meta">《软件学报》期刊 · 第二作者 · 2025年3月</p>
                      <p class="achievement-desc">系统综述了深度学习技术在计算机视觉领域的最新进展和应用前景。</p>
                    </div>
                  </div>
                </div>
              </el-tab-pane>
              
              <el-tab-pane label="项目经历" name="projects">
                <div class="achievement-list">
                  <div class="achievement-item">
                    <div class="achievement-badge">
                      <i class="el-icon-cpu badge-icon"></i>
                    </div>
                    <div class="achievement-content">
                      <h4>智能图像识别系统开发</h4>
                      <p class="achievement-meta">2024年9月 - 2025年5月 · 校级优秀毕业设计</p>
                      <p class="achievement-desc">负责系统架构设计和核心算法实现，项目获得校级优秀毕业设计。</p>
                    </div>
                  </div>
                  <div class="achievement-item">
                    <div class="achievement-badge">
                      <i class="el-icon-cpu badge-icon"></i>
                    </div>
                    <div class="achievement-content">
                      <h4>校园安防监控系统开发</h4>
                      <p class="achievement-meta">2024年3月 - 2024年8月</p>
                      <p class="achievement-desc">参与开发基于深度学习的人脸识别模块，提升安防系统智能化水平。</p>
                    </div>
                  </div>
                </div>
              </el-tab-pane>
              
              <el-tab-pane label="知识产权" name="ip">
                <div class="achievement-list">
                  <div class="achievement-item">
                    <div class="achievement-badge">
                      <i class="el-icon-files badge-icon"></i>
                    </div>
                    <div class="achievement-content">
                      <h4>一种基于深度学习的实时图像识别方法</h4>
                      <p class="achievement-meta">发明专利 · 申请号：202510012345.6 · 2025年4月</p>
                      <p class="achievement-desc">提出了一种高效的实时图像识别方法，在保持精度的同时大幅提升处理速度。</p>
                    </div>
                  </div>
                  <div class="achievement-item">
                    <div class="achievement-badge">
                      <i class="el-icon-files badge-icon"></i>
                    </div>
                    <div class="achievement-content">
                      <h4>智能图像识别系统软件</h4>
                      <p class="achievement-meta">软件著作权 · 登记号：2025SR0123456 · 2025年2月</p>
                      <p class="achievement-desc">开发的智能图像识别系统获得软件著作权登记。</p>
                    </div>
                  </div>
                </div>
              </el-tab-pane>
              
              <el-tab-pane label="获奖情况" name="awards">
                <div class="achievement-list">
                  <div class="achievement-item">
                    <div class="achievement-badge">
                      <i class="el-icon-medal badge-icon"></i>
                    </div>
                    <div class="achievement-content">
                      <h4>校级优秀毕业设计一等奖</h4>
                      <p class="achievement-meta">工程技术学院 · 2025年5月</p>
                      <p class="achievement-desc">毕业论文被评为校级优秀毕业设计一等奖。</p>
                    </div>
                  </div>
                  <div class="achievement-item">
                    <div class="achievement-badge">
                      <i class="el-icon-medal badge-icon"></i>
                    </div>
                    <div class="achievement-content">
                      <h4>全国大学生计算机设计大赛二等奖</h4>
                      <p class="achievement-meta">教育部高等学校计算机类专业教学指导委员会 · 2024年11月</p>
                      <p class="achievement-desc">在全国大学生计算机设计大赛中获得二等奖。</p>
                    </div>
                  </div>
                </div>
              </el-tab-pane>
            </el-tabs>
          </div>
        </el-card>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'DengkaixinPaperHome',
  data() {
    return {
      avatarUrl: '',
      activeTab: 'papers'
    }
  },
  methods: {
    handleAvatarChange(file) {
      const reader = new FileReader();
      reader.onload = (e) => {
        this.avatarUrl = e.target.result;
        this.$message.success('头像上传成功');
      };
      reader.readAsDataURL(file.raw);
    }
  }
}
</script>

<style scoped>
.paper-container {
  min-height: 100vh;
  background-color: #f5f7fa;
  font-family: 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

/* 顶部横幅样式 */
.banner-section {
  position: relative;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 40px 0;
  overflow: hidden;
}

.banner-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

.banner-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 10px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.banner-subtitle {
  font-size: 18px;
  opacity: 0.9;
}

.banner-decoration {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.decoration-circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.circle-1 {
  width: 100px;
  height: 100px;
  top: 20%;
  right: 10%;
}

.circle-2 {
  width: 150px;
  height: 150px;
  bottom: -30px;
  left: 5%;
}

.circle-3 {
  width: 70px;
  height: 70px;
  top: 60%;
  right: 20%;
}

/* 内容布局 */
.content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px;
  display: flex;
  gap: 30px;
}

.left-column {
  flex: 1;
  max-width: 400px;
}

.right-column {
  flex: 2;
}

/* 卡片通用样式 */
.el-card {
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: none;
  margin-bottom: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.el-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.card-header {
  display: flex;
  align-items: center;
  font-size: 18px;
  font-weight: 600;
  color: #303133;
  padding: 15px 20px;
  border-bottom: 1px solid #e6e6e6;
}

.header-icon {
  margin-right: 8px;
  color: #409eff;
}

/* 个人信息卡片样式 */
.profile-content {
  padding: 20px;
}

.avatar-section {
  text-align: center;
  margin-bottom: 25px;
  padding-bottom: 25px;
  border-bottom: 1px solid #f0f0f0;
}

.avatar-container {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 15px;
}

.avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 4px solid #e6f7ff;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(64, 158, 255, 0.2);
}

.avatar-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 4px solid #e6f7ff;
  background-color: #ecf5ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: #409eff;
  box-shadow: 0 4px 12px rgba(64, 158, 255, 0.2);
}

.avatar-upload-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.7);
  text-align: center;
  padding: 8px 0;
  border-radius: 0 0 60px 60px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.avatar-container:hover .avatar-upload-overlay {
  opacity: 1;
}

.student-name {
  font-size: 20px;
  font-weight: 600;
  color: #303133;
  margin-bottom: 5px;
}

.student-major {
  color: #606266;
  font-size: 14px;
}

.profile-details {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.detail-item {
  display: flex;
  align-items: center;
}

.item-icon {
  font-size: 18px;
  color: #409eff;
  margin-right: 12px;
  width: 24px;
  text-align: center;
}

.item-content {
  display: flex;
  flex-direction: column;
}

.item-label {
  font-size: 12px;
  color: #909399;
  margin-bottom: 4px;
}

.item-value {
  font-size: 15px;
  color: #303133;
  font-weight: 500;
}

/* 论文信息卡片样式 */
.thesis-content {
  padding: 20px;
}

.thesis-item {
  margin-bottom: 20px;
}

.thesis-title {
  font-size: 18px;
  font-weight: 600;
  color: #303133;
  margin-bottom: 12px;
  line-height: 1.4;
}

.thesis-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.thesis-abstract {
  margin-bottom: 20px;
  padding: 15px;
  background-color: #f9f9f9;
  border-radius: 8px;
}

.thesis-abstract h4 {
  font-size: 16px;
  color: #409eff;
  margin-bottom: 10px;
}

.thesis-abstract p {
  color: #606266;
  line-height: 1.6;
  font-size: 14px;
}

.thesis-meta {
  display: flex;
  justify-content: space-between;
}

.meta-item {
  display: flex;
  flex-direction: column;
}

.meta-label {
  font-size: 12px;
  color: #909399;
  margin-bottom: 5px;
}

.meta-value {
  font-size: 15px;
  color: #303133;
  font-weight: 500;
}

/* 研究成果卡片样式 */
.achievements-content {
  padding: 0;
}

.achievement-list {
  padding: 20px;
}

.achievement-item {
  display: flex;
  padding: 20px 0;
  border-bottom: 1px solid #f0f0f0;
}

.achievement-item:last-child {
  border-bottom: none;
}

.achievement-badge {
  flex: 0 0 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
}

.badge-icon {
  color: white;
  font-size: 20px;
}

.achievement-content {
  flex: 1;
}

.achievement-content h4 {
  font-size: 16px;
  font-weight: 600;
  color: #303133;
  margin-bottom: 8px;
}

.achievement-meta {
  font-size: 13px;
  color: #909399;
  margin-bottom: 8px;
}

.achievement-desc {
  font-size: 14px;
  color: #606266;
  line-height: 1.5;
}

/* 响应式设计 */
@media (max-width: 992px) {
  .content-wrapper {
    flex-direction: column;
  }
  
  .left-column {
    max-width: 100%;
  }
  
  .banner-title {
    font-size: 28px;
  }
  
  .banner-subtitle {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .banner-section {
    padding: 30px 0;
  }
  
  .content-wrapper {
    padding: 20px 15px;
    gap: 20px;
  }
  
  .thesis-meta {
    flex-direction: column;
    gap: 15px;
  }
  
  .achievement-item {
    flex-direction: column;
  }
  
  .achievement-badge {
    margin-right: 0;
    margin-bottom: 15px;
  }
}
</style>